/*
 * @Author: your name
 * @Date: 2020-09-18 10:44:28
 * @LastEditTime: 2020-10-05 09:59:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \egg-RESTfulAPI\app\model\RoadRealTime.js
 */
module.exports = app => {
  const mongoose = app.mongoose
  const MainRoadRealTimeSchema = new mongoose.Schema({
    时间: { type: String, unique: false },
    主路段信息: [{
      路段ID: { type: String, unique: false },
      路段平均速度: { type: Number, unique: false },
      路段总数量: { type: Number, unique: false },
      路段异常车数量: { type: Number, unique: false },
    }],

  })
  return mongoose.model('MainRoadRealTime', MainRoadRealTimeSchema)
}



